//package cn.geminis.workflow.service.filter;
//
//import cn.geminis.workflow.service.utils.LoginUserUtils;
//import org.flowable.common.engine.impl.identity.Authentication;
//import org.springframework.stereotype.Component;
//import org.springframework.web.filter.OncePerRequestFilter;
//
//import javax.servlet.FilterChain;
//import javax.servlet.ServletException;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.io.IOException;
//
///**
// * @author puddi
// */
//@Component
//public class FlowableAuthenticationFilter extends OncePerRequestFilter {
//
//    @Override
//    protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws ServletException, IOException {
////        var userName = LoginUserUtils.getLoginUserName();
//        var userName = "user";
//        Authentication.setAuthenticatedUserId(userName);
//
//        chain.doFilter(request, response);
//    }
//}
